package com.djakapm.markdown.editor.util;

import javax.swing.*;

public class ExceptionConsumer {
    public static void consume(Exception e){
        if(e.getMessage() == null){
            JOptionPane.showMessageDialog(null,e.toString());
        }
        else{
            JOptionPane.showMessageDialog(null,e.getMessage());
        }
    }
}
